home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / sleep.z / sleep
Encoding:
Text File  |  1998-10-20  |  1.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSLLLLEEEEEEEEPPPP((((3333CCCC))))                                                            SSSSLLLLEEEEEEEEPPPP((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      sleep - suspend execution for interval
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<uuuunnnniiiissssttttdddd....hhhh>>>>
  13.  
  14.      uuuunnnnssssiiiiggggnnnneeeedddd sssslllleeeeeeeepppp ((((uuuunnnnssssiiiiggggnnnneeeedddd sssseeeeccccoooonnnnddddssss))));;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The current thread is suspended from execution for the number of _s_e_c_o_n_d_s
  18.      specified by the argument.  The actual suspension time may be less than
  19.      that requested because any caught signal will terminate the _s_l_e_e_p
  20.      following execution of that signal's catching routine.  Also, the
  21.      suspension time may be longer than requested by an arbitrary amount due
  22.      to the scheduling of other activity in the system.  The value returned by
  23.      _s_l_e_e_p will be the ``unslept'' amount (the requested time minus the time
  24.      actually slept) in case of premature arousal due to a caught signal.
  25.  
  26. NNNNOOOOTTTTEEEESSSS
  27.      Unlike previous implementations, _s_l_e_e_p is implemented with the _s_g_i_n_a_p(_2)
  28.      system call rather than with _a_l_a_r_m(_2). Therefore, there are no unusual
  29.      side effects with the SIGALRM signal; its effect is like that of any
  30.      other signal.
  31.  
  32. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  33.      alarm(2), sginap(2), pause(2), sigaction(2), sigset(2)
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.